package com.itrus.cert;

import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.Map;
import org.bouncycastle.asn1.DERObjectIdentifier;
import org.bouncycastle.asn1.nist.NISTObjectIdentifiers;
import org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers;
import org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers;
import org.bouncycastle.asn1.x9.X9ObjectIdentifiers;

public class SignatureType
{
  private static final Map KEYPAIR_MAP = Collections.unmodifiableMap(localHashMap2);
  public static final SignatureType MD2withRSA = new SignatureType("MD2withRSA", PKCSObjectIdentifiers.md2WithRSAEncryption.getId());
  public static final SignatureType MD5withRSA = new SignatureType("MD5withRSA", PKCSObjectIdentifiers.md5WithRSAEncryption.getId());
  private static final Map OID_MAP;
  public static final SignatureType RIPEMD128withRSA;
  public static final SignatureType RIPEMD160withRSA;
  public static final SignatureType RIPEMD256withRSA;
  public static final SignatureType SHA1withDSA;
  public static final SignatureType SHA1withECDSA;
  public static final SignatureType SHA1withRSA = new SignatureType("SHA1withRSA", PKCSObjectIdentifiers.sha1WithRSAEncryption.getId());
  public static final SignatureType SHA224withDSA;
  public static final SignatureType SHA224withECDSA;
  public static final SignatureType SHA224withRSA = new SignatureType("SHA224withRSA", PKCSObjectIdentifiers.sha224WithRSAEncryption.getId());
  public static final SignatureType SHA256withDSA;
  public static final SignatureType SHA256withECDSA;
  public static final SignatureType SHA256withRSA = new SignatureType("SHA256withRSA", PKCSObjectIdentifiers.sha256WithRSAEncryption.getId());
  public static final SignatureType SHA384withDSA;
  public static final SignatureType SHA384withECDSA;
  public static final SignatureType SHA384withRSA = new SignatureType("SHA384withRSA", PKCSObjectIdentifiers.sha384WithRSAEncryption.getId());
  public static final SignatureType SHA512withDSA;
  public static final SignatureType SHA512withECDSA;
  public static final SignatureType SHA512withRSA = new SignatureType("SHA512withRSA", PKCSObjectIdentifiers.sha512WithRSAEncryption.getId());
  private final String name;
  private final String oid;

  static
  {
    RIPEMD128withRSA = new SignatureType("RIPEMD128withRSA", TeleTrusTObjectIdentifiers.rsaSignatureWithripemd128.getId());
    RIPEMD160withRSA = new SignatureType("RIPEMD160withRSA", TeleTrusTObjectIdentifiers.rsaSignatureWithripemd160.getId());
    RIPEMD256withRSA = new SignatureType("RIPEMD256withRSA", TeleTrusTObjectIdentifiers.rsaSignatureWithripemd256.getId());
    SHA1withDSA = new SignatureType("SHA1withDSA", X9ObjectIdentifiers.id_dsa_with_sha1.getId());
    SHA224withDSA = new SignatureType("SHA224withDSA", NISTObjectIdentifiers.dsa_with_sha224.getId());
    SHA256withDSA = new SignatureType("SHA256withDSA", NISTObjectIdentifiers.dsa_with_sha256.getId());
    SHA384withDSA = new SignatureType("SHA384withDSA", NISTObjectIdentifiers.dsa_with_sha384.getId());
    SHA512withDSA = new SignatureType("SHA512withDSA", NISTObjectIdentifiers.dsa_with_sha512.getId());
    SHA1withECDSA = new SignatureType("SHA1withECDSA", X9ObjectIdentifiers.ecdsa_with_SHA1.getId());
    SHA224withECDSA = new SignatureType("SHA224withECDSA", X9ObjectIdentifiers.ecdsa_with_SHA224.getId());
    SHA256withECDSA = new SignatureType("SHA256withECDSA", X9ObjectIdentifiers.ecdsa_with_SHA256.getId());
    SHA384withECDSA = new SignatureType("SHA384withECDSA", X9ObjectIdentifiers.ecdsa_with_SHA384.getId());
    SHA512withECDSA = new SignatureType("SHA512withECDSA", X9ObjectIdentifiers.ecdsa_with_SHA512.getId());
    HashMap localHashMap1 = new HashMap();
    localHashMap1.put(MD2withRSA.oid, MD2withRSA);
    localHashMap1.put(MD5withRSA.oid, MD5withRSA);
    localHashMap1.put(SHA1withRSA.oid, SHA1withRSA);
    localHashMap1.put(SHA224withRSA.oid, SHA224withRSA);
    localHashMap1.put(SHA256withRSA.oid, SHA256withRSA);
    localHashMap1.put(SHA384withRSA.oid, SHA384withRSA);
    localHashMap1.put(SHA512withRSA.oid, SHA512withRSA);
    localHashMap1.put(RIPEMD128withRSA.oid, RIPEMD128withRSA);
    localHashMap1.put(RIPEMD160withRSA.oid, RIPEMD160withRSA);
    localHashMap1.put(RIPEMD256withRSA.oid, RIPEMD256withRSA);
    localHashMap1.put(SHA1withDSA.oid, SHA1withDSA);
    localHashMap1.put(SHA224withDSA.oid, SHA224withDSA);
    localHashMap1.put(SHA256withDSA.oid, SHA256withDSA);
    localHashMap1.put(SHA384withDSA.oid, SHA384withDSA);
    localHashMap1.put(SHA512withDSA.oid, SHA512withDSA);
    localHashMap1.put(SHA1withECDSA.oid, SHA1withECDSA);
    localHashMap1.put(SHA224withECDSA.oid, SHA224withECDSA);
    localHashMap1.put(SHA256withECDSA.oid, SHA256withECDSA);
    localHashMap1.put(SHA384withECDSA.oid, SHA384withECDSA);
    localHashMap1.put(SHA512withECDSA.oid, SHA512withECDSA);
    OID_MAP = Collections.unmodifiableMap(localHashMap1);
    HashMap localHashMap2 = new HashMap();
    LinkedHashSet localLinkedHashSet = new LinkedHashSet();
    localLinkedHashSet.add(SHA1withDSA);
    localLinkedHashSet.add(SHA224withDSA);
    localLinkedHashSet.add(SHA256withDSA);
    localHashMap2.put(KeyPairType.DSA, Collections.unmodifiableSet(localLinkedHashSet));
    new LinkedHashSet();
    localLinkedHashSet.add(MD2withRSA);
    localLinkedHashSet.add(MD5withRSA);
    localLinkedHashSet.add(SHA1withRSA);
    localLinkedHashSet.add(SHA224withRSA);
    localLinkedHashSet.add(SHA256withRSA);
    localLinkedHashSet.add(SHA384withRSA);
    localLinkedHashSet.add(SHA512withRSA);
    localLinkedHashSet.add(RIPEMD128withRSA);
    localLinkedHashSet.add(RIPEMD160withRSA);
    localLinkedHashSet.add(RIPEMD256withRSA);
    localHashMap2.put(KeyPairType.RSA, localLinkedHashSet);
    new LinkedHashSet();
    localLinkedHashSet.add(SHA1withECDSA);
    localLinkedHashSet.add(SHA224withECDSA);
    localLinkedHashSet.add(SHA256withECDSA);
    localLinkedHashSet.add(SHA384withECDSA);
    localLinkedHashSet.add(SHA512withECDSA);
    localHashMap2.put(KeyPairType.ECDSA, localLinkedHashSet);
  }

  private SignatureType(String paramString1, String paramString2)
  {
    this.name = paramString1;
    this.oid = paramString2;
  }

  public static SignatureType defaultFor(KeyPairType paramKeyPairType)
  {
    switch (paramKeyPairType.value)
    {
    default:
      return null;
    case 1:
      return SHA1withRSA;
    case 2:
      return SHA1withDSA;
    case 3:
    }
    return SHA1withECDSA;
  }

  public static String toString(String paramString)
  {
    SignatureType localSignatureType = valueOfOid(paramString);
    if (localSignatureType != null)
      paramString = localSignatureType.toString();
    return paramString;
  }

  public static SignatureType valueOfOid(String paramString)
  {
    return (SignatureType)OID_MAP.get(paramString);
  }

  public static Collection valuesFor(KeyPairType paramKeyPairType)
  {
    Object localObject = (Collection)KEYPAIR_MAP.get(paramKeyPairType);
    if (localObject == null)
      localObject = Collections.emptySet();
    return localObject;
  }

  public String name()
  {
    return this.name;
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.itrus.cert.SignatureType
 * JD-Core Version:    0.6.2
 */